package pack.metier;

import java.util.Calendar;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
public class Donneur {
	/*
	@Transient
	protected ArrayList listePanel  ;
	@Transient
	protected ArrayList listePrelevement;*/
	
	@Column(nullable=false)
	protected String numeroHematie;
	@Id
	protected String numeroDonneur;
	@Column(nullable=false)
	protected String nomDonneur; 
	@Column(nullable=false)
	protected String prenom;
	@Column(nullable=false)
	protected String dateNais;
	@Column(nullable=false)
	protected int civilite;
	@Column(nullable=false)
	protected String adresseLigne1;
	@Column(nullable=true)
	protected String adresseLigne2;
	@Column(nullable=false)
	protected String codePostal;
	@Column(nullable=false)
	protected String ville;
	@Column(nullable=true)
	protected String numDomicile;
	@Column(nullable=true)
	protected String numTravail;
	@Column(nullable=true)
	protected String numPortable;
	@Column(nullable=true)
	protected String email;
	@ManyToOne
	@JoinColumn(name="centrePrefere")
	protected Centre centrePrefere;
	@Column(nullable=false)
	protected int groupe;	 
	@Column(nullable=false)
	protected boolean d_up;
	@Column(nullable=false)
	protected boolean c_up;
	@Column(nullable = false)
	protected boolean c_down;
	@Column(nullable=false)
	protected boolean e_up;
	@Column(nullable=false)
	protected boolean e_down;
	@Column(nullable=false)
	protected boolean cw;
	@Column(nullable=false)
	protected boolean k_up;
	@Column(nullable=false)
	protected boolean k_down;
	@Column(nullable=false)
	protected boolean kpa;
	@Column(nullable=false)
	protected boolean kpb;
	@Column(nullable=false)
	protected boolean fya;
	@Column(nullable=false)
	protected boolean fyb;
	@Column(nullable=false)
	protected boolean jka;
	@Column(nullable=false)
	protected boolean jkb;
	@Column(nullable=false)
	protected boolean lea;
	@Column(nullable=false)
	protected boolean leb;
	@Column(nullable=false)
	protected boolean m_up;
	@Column(nullable=false)
	protected boolean n_up;
	@Column(nullable=false)
	protected boolean s_up;
	@Column(nullable=false)
	protected boolean s_down;
	@Column(nullable=false)
	protected boolean p1;
	@Column(nullable=false)
	protected boolean lua;
	@Column(nullable=false)
	protected boolean lub;
	@Column(nullable=true)
	protected String freqDons;
	
	public Donneur(){
		super();
	}
	
	public Donneur(String numeroHematie, String numeroDonneur,
			String nomDonneur, String prenom, String dateNais, int civilite,
			String adresseLigne1, String adresseLigne2, String codePostal,
			String ville, String numDomicile, String numTravail,
			String numPortable, String email, Centre centrePrefere, int groupe,
			boolean d_up, boolean c_up, boolean c_down, boolean e_up,
			boolean e_down, boolean cw, boolean k_up, boolean k_down,
			boolean kpa, boolean kpb, boolean fya, boolean fyb, boolean jka,
			boolean jkb, boolean lea, boolean leb, boolean m_up, boolean n_up,
			boolean s_up, boolean s_down, boolean p1, boolean lua, boolean lub,
			String freqDons) {
		super();
		this.numeroHematie = numeroHematie;
		this.numeroDonneur = numeroDonneur;
		this.nomDonneur = nomDonneur;
		this.prenom = prenom;
		this.dateNais = dateNais;
		this.civilite = civilite;
		this.adresseLigne1 = adresseLigne1;
		this.adresseLigne2 = adresseLigne2;
		this.codePostal = codePostal;
		this.ville = ville;
		this.numDomicile = numDomicile;
		this.numTravail = numTravail;
		this.numPortable = numPortable;
		this.email = email;
		this.centrePrefere = centrePrefere;
		this.groupe = groupe;
		this.d_up = d_up;
		this.c_up = c_up;
		this.c_down = c_down;
		this.e_up = e_up;
		this.e_down = e_down;
		this.cw = cw;
		this.k_up = k_up;
		this.k_down = k_down;
		this.kpa = kpa;
		this.kpb = kpb;
		this.fya = fya;
		this.fyb = fyb;
		this.jka = jka;
		this.jkb = jkb;
		this.lea = lea;
		this.leb = leb;
		this.m_up = m_up;
		this.n_up = n_up;
		this.s_up = s_up;
		this.s_down = s_down;
		this.p1 = p1;
		this.lua = lua;
		this.lub = lub;
		this.freqDons = freqDons;
	}
	
	public String getNumeroHematie() {
		return numeroHematie;
	}
	
	public void setNumeroHematie(String numeroHematie) {
		this.numeroHematie = numeroHematie;
	}
	public String getNumeroDonneur() {
		return numeroDonneur;
	}
	public void setNumeroDonneur(String numeroDonneur) {
		this.numeroDonneur = numeroDonneur;
	}
	public String getNomDonneur() {
		return nomDonneur;
	}
	public void setNomDonneur(String nomDonneur) {
		this.nomDonneur = nomDonneur;
	}
	public String getPrenom() {
		return prenom;
	}
	public void setPrenom(String prenom) {
		this.prenom = prenom;
	}
	public String getDateNais() {
		return dateNais;
	}
	public void setDateNais(String dateNais) {
		this.dateNais = dateNais;
	}
	public int getCivilite() {
		return civilite;
	}
	public void setCivilite(int civilite) {
		this.civilite = civilite;
	}
	public String getAdresseLigne1() {
		return adresseLigne1;
	}
	public void setAdresseLigne1(String adresseLigne1) {
		this.adresseLigne1 = adresseLigne1;
	}
	public String getAdresseLigne2() {
		return adresseLigne2;
	}
	public void setAdresseLigne2(String adresseLigne2) {
		this.adresseLigne2 = adresseLigne2;
	}
	public String getCodePostal() {
		return codePostal;
	}
	public void setCodePostal(String codePostal) {
		this.codePostal = codePostal;
	}
	public String getVille() {
		return ville;
	}
	public void setVille(String ville) {
		this.ville = ville;
	}
	public String getNumDomicile() {
		return numDomicile;
	}
	public void setNumDomicile(String numDomicile) {
		this.numDomicile = numDomicile;
	}
	public String getNumTravail() {
		return numTravail;
	}
	public void setNumTravail(String numTravail) {
		this.numTravail = numTravail;
	}
	public String getNumPortable() {
		return numPortable;
	}
	public void setNumPortable(String numPortable) {
		this.numPortable = numPortable;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public Centre getCentrePrefere() {
		return centrePrefere;
	}
	public void setCentrePrefere(Centre centrePrefere) {
		this.centrePrefere = centrePrefere;
	}
	public int getGroupe() {
		return groupe;
	}
	public void setGroupe(int groupe) {
		this.groupe = groupe;
	}
	public boolean isD_up() {
		return d_up;
	}
	public void setD_up(boolean d_up) {
		this.d_up = d_up;
	}
	public boolean isC_up() {
		return c_up;
	}
	public void setC_up(boolean c_up) {
		this.c_up = c_up;
	}
	public boolean isC_down() {
		return c_down;
	}
	public void setC_down(boolean c_down) {
		this.c_down = c_down;
	}
	public boolean isE_up() {
		return e_up;
	}
	public void setE_up(boolean e_up) {
		this.e_up = e_up;
	}
	public boolean isE_down() {
		return e_down;
	}
	public void setE_down(boolean e_down) {
		this.e_down = e_down;
	}
	public boolean isCw() {
		return cw;
	}
	public void setCw(boolean cw) {
		this.cw = cw;
	}
	public boolean isK_up() {
		return k_up;
	}
	public void setK_up(boolean k_up) {
		this.k_up = k_up;
	}
	public boolean isK_down() {
		return k_down;
	}
	public void setK_down(boolean k_down) {
		this.k_down = k_down;
	}
	public boolean isKpa() {
		return kpa;
	}
	public void setKpa(boolean kpa) {
		this.kpa = kpa;
	}
	public boolean isKpb() {
		return kpb;
	}
	public void setKpb(boolean kpb) {
		this.kpb = kpb;
	}
	public boolean isFya() {
		return fya;
	}
	public void setFya(boolean fya) {
		this.fya = fya;
	}
	public boolean isFyb() {
		return fyb;
	}
	public void setFyb(boolean fyb) {
		this.fyb = fyb;
	}
	public boolean isJka() {
		return jka;
	}
	public void setJka(boolean jka) {
		this.jka = jka;
	}
	public boolean isJkb() {
		return jkb;
	}
	public void setJkb(boolean jkb) {
		this.jkb = jkb;
	}
	public boolean isLea() {
		return lea;
	}
	public void setLea(boolean lea) {
		this.lea = lea;
	}
	public boolean isLeb() {
		return leb;
	}
	public void setLeb(boolean leb) {
		this.leb = leb;
	}
	public boolean isM_up() {
		return m_up;
	}
	public void setM_up(boolean m_up) {
		this.m_up = m_up;
	}
	public boolean isN_up() {
		return n_up;
	}
	public void setN_up(boolean n_up) {
		this.n_up = n_up;
	}
	public boolean isS_up() {
		return s_up;
	}
	public void setS_up(boolean s_up) {
		this.s_up = s_up;
	}
	public boolean isS_down() {
		return s_down;
	}
	public void setS_down(boolean s_down) {
		this.s_down = s_down;
	}
	public boolean isP1() {
		return p1;
	}
	public void setP1(boolean p1) {
		this.p1 = p1;
	}
	public boolean isLua() {
		return lua;
	}
	public void setLua(boolean lua) {
		this.lua = lua;
	}
	public boolean isLub() {
		return lub;
	}
	public void setLub(boolean lub) {
		this.lub = lub;
	}
	public String getFreqDons() {
		return freqDons;
	}
	public void setFreqDons(String freqDons) {
		this.freqDons = freqDons;
	}	
	
    @Override
    public String toString() {
            return "";

    }
}
